<!DOCTYPE html>  
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">  
    <head>  
        <title>Hello World!</title>  
    </head>  
    <body>  
        <h1 th:inline="text">Hello.v.2</h1>  
        <p th:text="${returnMsg}">dsafasd</p>  

		<table border="1">  
          <tr>  
          	<th>序号</th>  
            <th>序号</th>  
            <th>用户名</th>  
            <th>密码</th>
            <th>地址</th>
            <th>订单</th>  
          </tr>  
          <tr  th:each="user,userStat : ${resultPage.list}">  
            <td th:text="${userStat.index+1}">fdsaf<div th:if="${userStat.index==0}">45454</div></td>  
            <td><input th:value="${userStat.index==0}?'1111':'22'"></input></td> 
            <td th:text="${user.userName}">test@test.com.cn</td>  
            <td th:text="${user.passWord}">yes</td>  
            <td th:text="${user.address.city}">china</td>
            <td>
            	<p th:each="order,orderStat:${user.orderList}">
            		<label th:text="${order.name}"></label>
            	</p>
            </td>
            <div th:switch="${userStat.index}">
			  <p th:case="'0'">User is an administrator</p>
			  <p th:case="'4'">User is a manager</p>
			  <p th:case="*">User is a manager</p>
			</div>
          </tr>  
        </table> 

    </body>  
</html>  